package san.java.day14;

public class GoldenDog extends Dog{

    private Integer privateI;

    public String nicheng = "菠萝";

    /**
     * 构造方法需要重写
     * @param name
     * @param age
     */
    public GoldenDog(String name, int age) {
        super(name, age);
    }

    public GoldenDog() {
        super();
    }

    private GoldenDog(String name) {
        super(name, 1000);
    }

    public int getPrivateI() {
        return privateI;
    }

    private void test(String name) {
        System.out.println(name);
    }

    @Override
    public void showInfo() {
        System.out.println("我是金毛");
    }

    @Override
    public void bark() {
        System.out.println("大型狗叫");
    }
}
